import { getCommunityNameFromClient } from '@/common/utils/community';
import { getLanguageFromClient } from '@/common/utils/language';
import { getTokenFromClient } from '@/common/utils/auth';
import { createApp } from './main';

const { app, router } = createApp({
  language: getLanguageFromClient(),
  communityName: getCommunityNameFromClient(),
  token: getTokenFromClient(),
});

router.isReady().then(() => {
  app.mount('#app');
});
